﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

public class LoginBL : LoginProperties
{
    public LoginBL(string emailId, string password)
    {
        // TODO: Complete member initialization
        this.EmailId = emailId;
        this.Password = password;
    }

    public LoginBL()
    {
        // TODO: Complete member initialization
    }

    public LoginBL(string firstName, string lastName, string emailId, string password, string gender, string roleName)
    {
        // TODO: Complete member initialization
        this.FirstName = firstName;
        this.LastName = lastName;
        this.EmailId = emailId;
        this.Password = password;
        this.Gender = Convert.ToChar(gender);
        this.RoleName = roleName;
    }

    public bool CheckUser()
    {
        return LoginDL.CheckUser(this);
    }

    public bool Insert()
    {
        return LoginDL.Insert(this);
    }
}
